{% extends "noanalytics.html" %}
{% load markup %}
{% load comments %}
{% block sidebar %}
        <div class='right' id='sidebar' style='width:30%;'>
            {% for article in sidebar_data%}
                <h2> {{article.title}}</h2>
                <p>{{article.body|markdown}}</p>
            {% endfor %}
            </ul>
        </div>
{% endblock %}
{% block body %}
    {% for article in articlelist %}
                <div class="body">
                    <h2><a href='http://crimsonfae.net/blog{{link|lower}}/articles/{{article.slug}}'>{{article.title}}</a></h2>
                    {{article.body|markdown}}
                    {% get_comment_count for article as comment_count %}
                </div>
                <div class="authorlist">
                    <p>Authors:<span>
                    {% for author in article.author.all %}
                        <a href="mailto://{{author.email}}">{{author.first_name}}</a>
                    {% endfor %}
                    </span>Published: {{article.pub_date}} Comments: {{comment_count}}</p>
                </div>
    {%endfor%}
    {% if step %} 
    <div id='pagination'>
        <a href='/blog/pages/{{step.prev}}'>Previous Page</a>
        <a href='/blog/pages/{{step.next}}'class='right'>Next Page</a>
    </div>
    {% endif %}
    
{% endblock %}
